package com.binyouwei.designpatterns.structural_type.bridge;

/**
 * @author 宾有为
 * @date 2024/7/8 20:23
 * @link https://blog.csdn.net/baidu_41616022?type=blog
 * @describe：桥接模式 - 用于将抽象部分与实现部分分离，使得它们可以独立地变化。
 **/
public class BridgeMain {

    public static void main(String[] args) {
        BridgeShape redCircle = new BridgeCircle(100,100, 10, new RedCircle());
        BridgeShape greenCircle = new BridgeCircle(100,100, 10, new GreenCircle());

        redCircle.draw();
        greenCircle.draw();
    }
}
